<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        a{
            text-decoration:none ;
            }
        .box{
                width: 520px;
            height: 280px;
            background-color:black;
            margin: 100px auto;
            position: relative;
            }
            .arr-1,.arr-r{
                display: inline-block;
                position: absolute;
                top: 50%;
                margin-top: -15px;
                width: 20px;
                height: 30px;
                line-height: 30px;
                background-color: rgba(0, 0, 0, 0.2);
                color: rgb(255, 255, 255);
            }
        .arr-1{
            left: 0; 
            border-top-right-radius: 20px;
            border-bottom-right-radius: 20px;
        }
        .arr-r{
            right: 0;
            border-top-left-radius: 20px;
            border-bottom-left-radius: 20px;
        }
        .arr-1:hover,.arr-r:hover{
            background-color: rgb(0, 0, 0 ,0.6);
        }
            
        
    </style>
</head>
<body>
    <div class="box">
     <a href="#" class="arr-1">&lt</a>
     <a href="#" class="arr-r">&lt</a>
     <img src="img/taobao.jpg">
    </div>
</body>
</html>